import request from '@/utils/request'

// 发布需求
export function addDemand(data) {
  return request({
    url: '/equipment/demand/add',
    method: 'post',
    data
  })
}

// 查询需求列表
export function demandHall(data) {
  return request({
    url: '/equipment/demand/list',
    method: 'post',
    data
  })
}


// 需求详情
export function demandDetail(data) {
  return request({
    url: '/equipment/demand/detail',
    method: 'post',
    data
  })
}

// 编辑需求
export function editDemand(data) {
  return request({
    url: '/equipment/demand/edit',
    method: 'post',
    data
  })
}


// 删除需求
export function deleteDemand(data) {
  return request({
    url: '/equipment/demand/delete',
    method: 'post',
    data
  })
}

// 上下架
export function changeStatus(data) {
  return request({
    url: '/equipment/demand/changeStatus',
    method: 'post',
    data
  })
}

// 首页最新需求
export function indexNewDemand(data) {
  return request({
    url: '/equipment/demand/newList',
    method: 'post',
    data
  })
}
